<extend name="Base/list" />

<block name="title">下单字段</block>

<block name="nav">
<li class="current"><a href="{:U(CONTROLLER_NAME.'/index')}">列表</a></li>
</block>

<block name="tip">
<table id="tip">
  <tr><th colspan="2">技巧提示</th></tr>
  <tr><td class="num">1、</td><td>您可将字段设置为默认字段，在添加模板时，将自动勾选上默认字段。</td></tr>
</table>
</block>

<block name="list">
<if condition="$All">
{$page}
<div id="list">
  <table>
    <tr><th class="name">字段名称</th><th class="selected">是否默认</th></tr>
    <foreach name="All" key="key" item="value">
    <tr><td>{$value['name']|keyword=$keyword}</td><td><if condition="$value['selected']"><span class="red">是</span> | <a href="{:U(CONTROLLER_NAME.'/selected',array('id'=>$value['id']))}">取消默认</a><else/><span class="green">否</span> | <a href="{:U(CONTROLLER_NAME.'/selected',array('id'=>$value['id']))}">设为默认</a></if></td></tr>
    </foreach>
  </table>
</div>
{$page}
<else/>
<p id="nothing">没有找到您搜索的下单字段</p>
</if>
</block>